package br.fot.granola.genner.states.blinky;

import br.fot.granola.oboe.core.Oboe;
import br.fot.granola.oboe.core.Slot;
import br.fot.granola.oboe.graphics.Scene;
import br.fot.granola.oboe.util.OboeRenderer;

public class Blinky extends Scene 
{
	private OboeRenderer r;
	
	public Blinky()
	{
		Oboe.addChild( this, new BlinkyCam() );
		Oboe.addChild( this, new Square() );
		for( int i=0; i<10; ++i )
		{
			Oboe.addChild( this, new Fly() );
		}
	}
	
	@Slot public void onKeyDown( int code )
	{
		Oboe.signalDown( this, "onKeyDown", code );
	}
	
	@Slot public void onKeyUp( int code )
	{
		Oboe.signalDown( this, "onKeyUp", code );
	}
}
